<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title></title>
</head>
<body>
    <input type="button" onclick="AjaxSubmit();" value="Ajax提交" />

    <script src="/static/js/jquery-2.1.4.min.js"></script>
    <script type="text/javascript">
        function AjaxSubmit(){
            var host = '1.1.1.1';
            var port = '999';
            $.ajax({
                url:"/ajax_data/",
                type:"POST",
                data:{h:host,p:port},
                success:function(arg){

                }
            });
        }
    </script>
</body>
</html>